<!DOCTYPE html>
<html>

{include file='public/header'}
<style>
    .layui-table-view{
        margin: 0;
    }
    .layui-row .layui-inline{margin-bottom: 10px;}
</style>
<body>
    <!-- <div class="x-body">
        <div class="layui-row">
            <form class="layui-form">
                <div class="layui-inline">
                    <label class="layui-form-label w-auto">日期：</label>
                    <div class="layui-inline" id="time" style="display: flex;align-items: center;">
                        <div class="layui-input-inline" style="margin-right:10px">
                            <input type="text" class="layui-input" name="start_date" id="start_time" placeholder="开始时间">
                        </div>
                        <div class="layui-form-mid">-</div>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="end_date" id="end_time" placeholder="结束日期">
                        </div>
                    </div>
                </div>

                <div class="layui-inline">
                    <label class="layui-form-label w-auto">链接id：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="link_id" placeholder="请输入链接id" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <button type="button" class="layui-btn" id="accountRefresh" style="margin-bottom: 10px;">刷新</button>
                <div class="layui-inline">
                    <label class="layui-form-label w-auto">负责人：</label>
                    <div id="responsibilityPerson"></div>
                </div>
                
                <button class="layui-btn" style="margin-left: 10px;" lay-submit lay-filter="searchList">搜索</button><span style="font-size:10px">（短剧id和负责人账号不可同时搜索）<span>
                <button type="reset" id="resetList" class="layui-btn layui-btn-primary">重置</button>
            </form>
        </div>
    </div> -->
    <table id="launchDetail" lay-filter="launchDetail"></table>
    <script>
        let videoId = GetQueryString('video_id')
        let company_id = GetQueryString('company_id')
        let start_time = GetQueryString('start_time')
        let end_time = GetQueryString('end_time')
        let respons_id = GetQueryString('respons_id')
        let params = {
            elem: '#launchDetail'
            , url: `/admin/launch/shortPlayDetail?video_id=${videoId}&company_id=${company_id}&start_time=${start_time}&end_time=${end_time}&respons_id=${respons_id}` //数据接口
            , id: 'launchDetail'
            , page:true
            , limit:15
            , cols: [[ //表头
                { field: 'date', width: 120, title: '日期', align:'center'}
                , { field: 'link_id', width: 80, title: '链接id', align:'center'}
                , { field: 'cost',width: 100, title: '消耗', align:'center'}
                , { field: 'actual_cost',width: 100, title: '实际消耗', align:'center'}
                , { field: 'register_user_num',width: 100, title: '注册用户', align:'center'}
                , { field: 'activation_user_num',width: 100, title: '激活用户', align:'center'}
                , { field: 'current_recharge',width: 100, title: '当天充值', align:'center'}
                , { field: 'total_recharge', width: 100,title: '累计充值', align:'center'}
                , { field: 'current_income',width: 100, title: '当天收益', align:'center'}
                , { field: 'total_income', width: 100,title: '累计收益', align:'center'}
                , { field: 'current_recovery', width: 100,title: '返后ROI', align:'center'}
                
                
                , { field: 'total_recovery', width: 100,title: '累计ROI', align:'center'}
                , { field: 'revenue', width: 90,title: '利润', align:'center'}
                , { field: 'conversion_number',width: 100, title: '充值人数', align:'center'}
                
                , { field: 'new_recharge_number',width: 100, title: '新充笔数', align:'center'}
                , { field: 'new_user_number', width: 90,title: '新充人数', align:'center'}
                , { field: 'conversion_cost',width: 90,title: '转化成本', align:'center'}
                , { field: 'conversion_rate',width: 90, title: '转换率', align:'center'}
                
                
                , { field: 'per_capita_contribution', width: 120,title: '充值用户贡献', align:'center'}
                // , { field: 'video_name', title: '短剧名称', width: 120}
                , { field: 'responsibility_person_name', title: '负责人', width: 120, align:'center'}
            ]]
        }
        tableList(params)

    </script>
</body>

</html>